using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN NganhHocService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: NganhHocService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class NganhHocService : INganhHocService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: NganhHoc_ID</para>
		/// <para>Output: NganhHocEntity</para>
		///</summary>
		public NganhHocEntity SelectOne(int NganhHoc_ID){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.SelectOne(NganhHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaNganhHoc</para>
		/// <para>Input: MaNganhHoc</para>
		/// <para>Output: NganhHocEntity</para>
		///</summary>
		public NganhHocEntity SelectOneByMaNganhHoc(string MaNganhHoc){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.SelectOneByMaNganhHoc(MaNganhHoc);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of NganhHocEntity</para>
		///</summary>
		public List<NganhHocEntity> SelectAll(){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of NganhHocEntity</para>
		///</summary>
		public List<NganhHocEntity> SelectAllFilter(string strFilter){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: NganhHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(NganhHocEntity o){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: NganhHocEntity</para>
		/// <para>Output: NganhHocEntity</para>
		///</summary>
		public NganhHocEntity SaveRet(NganhHocEntity o){
			NganhHocDAO dao = new NganhHocDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of NganhHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<NganhHocEntity> list){
			NganhHocDAO dao = new NganhHocDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of NganhHocEntity</para>
		/// <para>Output: List of NganhHocEntity</para>
		///</summary>
		public List<NganhHocEntity> SaveListRet(List<NganhHocEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: NganhHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(NganhHocEntity o){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of NganhHocEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<NganhHocEntity> list){
			NganhHocDAO dao = new NganhHocDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaNganhHoc</para>
		/// <para>Input: NewMaNganhHoc,NganhHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaNganhHoc(string NewMaNganhHoc,int NganhHoc_ID){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.UpdateMaNganhHoc(NewMaNganhHoc,NganhHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenNganhHoc</para>
		/// <para>Input: NewTenNganhHoc,NganhHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenNganhHoc(string NewTenNganhHoc,int NganhHoc_ID){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.UpdateTenNganhHoc(NewTenNganhHoc,NganhHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTaNganhHoc</para>
		/// <para>Input: NewMoTaNganhHoc,NganhHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTaNganhHoc(string NewMoTaNganhHoc,int NganhHoc_ID){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.UpdateMoTaNganhHoc(NewMoTaNganhHoc,NganhHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateKhoa_ID</para>
		/// <para>Input: NewKhoa_ID,NganhHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateKhoa_ID(int NewKhoa_ID,int NganhHoc_ID){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.UpdateKhoa_ID(NewKhoa_ID,NganhHoc_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateHeDaoTao_ID</para>
		/// <para>Input: NewHeDaoTao_ID,NganhHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateHeDaoTao_ID(int NewHeDaoTao_ID,int NganhHoc_ID){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.UpdateHeDaoTao_ID(NewHeDaoTao_ID,NganhHoc_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: NganhHocEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(NganhHocEntity o){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: NganhHoc_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int NganhHoc_ID){
			NganhHocDAO dao = new NganhHocDAO();
			return dao.DeleteByID(NganhHoc_ID);
		}
		#endregion

		#region Select join to HeDaoTaoKhoa functions
		#endregion

		#region Select join to HeDaoTao functions
		#endregion

		#region Select join to Khoa functions
		#endregion

		#region Select,delete by NganhHoc_ID functions
		#endregion

		#region Select,delete by Khoa_ID functions
		#endregion

		#region Select,delete by HeDaoTao_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END NganhHocWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

